#include "UCustomWindow.h"
#include "ULeafWindow.h"

TCustomWindow::TCustomWindow(bool is3d)
{
	Parent		= NULL;
	Is3d		= is3d;
	MinWidth	= 20;
	MinHeight	= 20;
}

TCustomWindow::TCustomWindow(TLeafWindow* parent, bool is3d)
{
	Parent		= parent;
	Is3d		= is3d;
	MinWidth	= 50;
	MinHeight	= 50;
}

bool TCustomWindow::IsFocussed()
{
	return Parent->IsFocussed();
}


void TCustomWindow::setParent(TLeafWindow* parent)
{
	Parent = parent;
}

void TCustomWindow::MouseMove (int X, int Y, int mstate){}
void TCustomWindow::MouseDown (int X, int Y, uint8 button){}
void TCustomWindow::MouseLeave(){}
void TCustomWindow::MouseUp   (int X, int Y, uint8 button){}
void TCustomWindow::KeyDown   (SDL_KeyboardEvent* Key){};
void TCustomWindow::KeyUp	  (SDL_KeyboardEvent* Key){};

void TCustomWindow::resize(int w, int h)
{
}
